package com.ruoyi.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.app.domain.SysVersion;
import com.ruoyi.app.domain.vo.SysVersionVo;
import org.apache.ibatis.annotations.Select;

/**
 * 用于记录软件、文档等版本相关信息的Mapper接口
 * 
 * @author ruoyi
 * @date 2025-04-13
 */
public interface SysVersionMapper extends BaseMapper<SysVersion> {

    @Select("select * from sys_version WHERE DEL_FLAG = 0 ORDER BY RELEASE_DATE DESC, CREATE_TIME DESC LIMIT 1")
    SysVersionVo getCurrentVersion();
}
